package zl.osimall.common.mapper;

import org.apache.ibatis.annotations.Param;
import zl.osimall.common.bean.Cart;

import java.util.List;

public interface CartMapper {
    int insert(Cart cart);
    int delete(Integer id);
    int update(@Param("id") Integer id,@Param("count") Integer count);
    List<Cart> selectByUserId(Integer userId);
    Cart selectById(Integer id);
    Cart selectByUserIdAndGoodsId(@Param("userId") Integer userId,@Param("goodId") Integer goodsId);

    List<Cart> selectByIds(@Param("ids") Integer[] ids);
}
